#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "OLED.h"
#include "PWM.h"

uint8_t i;

int main(void)
{
	OLED_Init();
	PWM_Init();
	OLED_ShowString(1,3,"I LOVE YOU!");

	while(1)
	{
		for(i=0;i<=100;i++)
		{
			PWM_SetCompare(i);
			Delay_ms (10);
			OLED_ShowNum(2,1,i,3);
		}
		for(i=0;i<=100;i++)
		{
			PWM_SetCompare(100-i);
			Delay_ms (10);
			OLED_ShowNum(2,1,i,3);
		}	
	}
}
